package com.coderman.infosys.auth.adapter.controller.authority;

import com.coderman.infosys.auth.adapter.controller.BaseController;
import com.coderman.infosys.plat.auth.common.dto.ResultDataDto;
import com.coderman.infosys.plat.auth.common.vo.PageVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.coderman.infosys.auth.adapter.vo.authority.DataAuthorityVO;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
* @Description:控制层
* @Author:
* @CreateTime:2022-01-04 15:27:39
* @version v1.0
*/
@RestController
@Deprecated
public class DataAuthorityQueryController extends BaseController {
	
	protected Logger logger = LoggerFactory.getLogger(DataAuthorityQueryController.class);



	/**
	 *
	 * @Description 分页获取权限信息
	 * @param pageVO
	 * @return PageVO<DataAuthorityVO>
	 */
	@RequestMapping(value = "/dataauthority/pagelist")
	public ResultDataDto<PageVO> getPageList(@RequestParam(value = "pageVO", required = true) PageVO pageVO){

		return null;
	}

	/**
	 *
	 * @Description 获取数据权限信息
	 * @param authCode
	 * @return DataAuthorityVO
	 */
	@RequestMapping(value = "/dataauthority/getbycode")
	public ResultDataDto<DataAuthorityVO> getByCode(@RequestParam(value = "authCode", required = true) String authCode){

		return null;
	}

	/**
	 *
	 * @Description 判断用户有没有访问某数据的权限
	 * @param userId
	 * @param systemCode
	 * @return DataAuthorityVO
	 */
	@RequestMapping(value = "/dataauthority/check")
	public ResultDataDto<DataAuthorityVO> checkUserSystemAuth(@RequestParam(value = "userId", required = true) Long userId, @RequestParam(value = "systemCode", required = true) String systemCode){

		return null;
	}
}
